package edu.xhu.api.video.fallback;

import edu.xhu.api.video.VideoCrudClient;
import edu.xhu.model.common.dtos.ResponseResult;
import edu.xhu.model.common.enums.AppHttpCodeEnum;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class VideoCrudClientFallback implements VideoCrudClient {
    /**
     * 获取全部视频id
     *
     * @return
     */
    @Override
    public ResponseResult<?> getAllVideoIds() {
        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR, "获取全部视频id失败");
    }

    @Override
    public ResponseResult<?> updateDanmuByVideoIds(List<Long> videoIds) {
        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR, "更新失败Danmu~");
    }
}
